<?php
/**
 * Page description
 *
 * @package 
 * @version {: }
 */

/**
 * Class description
 * 
 * @package 
 * @subpackage 
 * @author Author Name <email>
 */
class System_View_Helper_CommaList extends System_View_Helper_Abstract{
    /**
     * Description of the method
     *
     * @access public
     * @return RETURN TYPE
     */
    public function process(){
        while($this->_model->current()){
            $this->_affected_data[] = $this->trueValue($this->_rules);

			$this->_model->next();
        }
        
        $this->_processed_data = implode(', ', $this->_affected_data);
        
        return $this;
    }
    
    /**
     * processes the data from chained events ignoring the rules
     *
     * @access public
     * @return RETURN TYPE
     */
    public function processChain(){
        $this->_processed_data = implode(', ', $this->_data);
        
        return $this;
    }
}